﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebDulich.Repository.Dapper
{
    public class Category
    {
        public Category()
        {
            this.Articles = new HashSet<Article>();
        }

        public int Id { get; set; }
        public Nullable<int> ParentId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Type { get; set; }
        public System.Guid MetaDataId { get; set; }
        public int Order { get; set; }
        public bool IsActive { get; set; }

        public virtual ICollection<Article> Articles { get; set; }
        public virtual MetaData MetaData { get; set; }
    }
}